package com.freeLearning.boot.course.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.freeLearning.boot.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.time.LocalDateTime;

@Data
@TableName("course_info")
public class CourseInfo  extends BaseEntity {

    @Schema(description = "课程标题")
    private String title;

    @Schema(description = "课程描述")
    private String description;

    @Schema(description = "咨询师ID")
    private Long consultantId;

    @Schema(description = "咨询师姓名")
    private String consultantName;

    @Schema(description = "课程分类ID")
    private Long categoryId;

    @Schema(description = "课程分类名称")
    private String categoryName;

    @Schema(description = "课程封面图URL")
    private String coverImage;

    @Schema(description = "课程介绍")
    private String content;

    @Schema(description = "是否推荐")
    private Integer isRecommend;
    @Schema(description = "课程状态（0: 待审核, 1: 审核通过, 2: 审核未通过, 3: 已发布）")
    private Integer status;

    @Schema(description = "开课时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
}